#ifndef NETWORKTHREAD_H
#define NETWORKTHREAD_H

#include <QThread>
#include "ElementData.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>


class NetworkThread : public QThread
 {
     Q_OBJECT
 private:
     int frameRate;
     QString serverIP;

 public:
     NetworkThread(QString);
     void run();

 signals:
     void changeElementSign(float*);
         void addElementSign(ElementData*);
	 void deleteElementSign(int,int);
     void networkErrorSign(QString);
 };

#endif // NETWORKTHREAD_H
